package com.example.produces.mapper;

import com.example.produces.entity.Ostock;
import com.example.produces.entity.Owarehouse;
import org.apache.ibatis.annotations.Mapper;
import org.springframework.stereotype.Repository;

import java.util.List;

@Mapper
@Repository//数据访问层 (DAO 层 ) 的类标识为bean
public interface OwarehouseMapper {
    List<Owarehouse> findAll();
    void add(Owarehouse owarehouse);
    Owarehouse findOne(String designation);
    void upDate(Owarehouse owarehouse);
    void delete(String designation);
}
